/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author Mr-Quick
 */
@Entity
@Table(name = "FAQs")
@NamedQueries({
    @NamedQuery(name = "FAQs.findAll", query = "SELECT f FROM FAQs f"),
    @NamedQuery(name = "FAQs.findByIdQuestion", query = "SELECT f FROM FAQs f WHERE f.idQuestion = :idQuestion"),
    @NamedQuery(name = "FAQs.findByQuestion", query = "SELECT f FROM FAQs f WHERE f.question = :question"),
    @NamedQuery(name = "FAQs.findByAnswers", query = "SELECT f FROM FAQs f WHERE f.answers = :answers")})
public class FAQs implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "IdQuestion")
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Integer idQuestion;
    @Column(name = "Question")
    private String question;
    @Column(name = "answers")
    private String answers;

    public FAQs() {
    }

    public FAQs(Integer idQuestion) {
        this.idQuestion = idQuestion;
    }

    public Integer getIdQuestion() {
        return idQuestion;
    }

    public void setIdQuestion(Integer idQuestion) {
        this.idQuestion = idQuestion;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswers() {
        return answers;
    }

    public void setAnswers(String answers) {
        this.answers = answers;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idQuestion != null ? idQuestion.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FAQs)) {
            return false;
        }
        FAQs other = (FAQs) object;
        if ((this.idQuestion == null && other.idQuestion != null) || (this.idQuestion != null && !this.idQuestion.equals(other.idQuestion))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.FAQs[ idQuestion=" + idQuestion + " ]";
    }
    
}
